]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dash: Don't unnecessarily animate icon size changes
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 9 Feb 2011 22:55:50 +0000 (23:55 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 9 Feb 2011 23:09:02 +0000 (00:09 +0100)
We already skip animations for item additions/removals while the
overview is hidden or when initially filling the dash (to avoid
an odd zoom effect when showing), apply the same logic to animations
of icon size changes.

js/ui/dash.js

index e4d18abb48d26799eb71967caaafed6aceca00fe..737b35d3ab87d1e7d82550c1e5651848fb1916c0 100644 (file)
@@ -434,6 +434,12 @@ Dash.prototype = {
             // Set the new size immediately, to keep the icons' sizes
             // in sync with this._iconSize
             icon.setIconSize(this._iconSize);
+
+            // Don't animate the icon size change when the overview
+            // is not visible or when initially filling the dash
+            if (!Main.overview.visible || !this._shownInitially)
+                continue;
+
             let [targetWidth, targetHeight] = icon.icon.get_size();
 
             // Scale the icon's texture to the previous size and